package org.victoriest.server.protocol;

public enum Protocol {
	// 心跳包协议
	TYPE_HEART_BEAT(0x0),
	// 登陆协议
	TYPE_LOGIN_REQ(0x1),
	TYPE_LOGIN_RES(0x2),
	// 进入大厅
	TYPE_ENTER_HALL_REQ(0x3),
	TYPE_ENTER_HALL_RES(0x4),
	// 创建房间
	TYPE_CREATE_ROOM_REQ(0x5),
	TYPE_CREATE_ROOM_RES(0x6),
	// 进入房间
	TYPE_ENTER_ROOM_REQ(0x7),
	TYPE_ENTER_ROOM_RES(0x8),
	// 获取房间列表
	TYPE_FEACH_ROOM_REQ(0x9),
	TYPE_FEACH_ROOM_RES(0xA),
	// 发聊天
	TYPE_CHAT_REQ(0xB),
	TYPE_CHAT_RES(0xC),
	// 退出房间 
	TYPE_QUIT_ROOM_REQ(0xD),
	TYPE_QUIT_ROOM_RES(0xE),
	// 退出游戏
	TYPE_QUIT_HALL_REQ(0xF),
	TYPE_QUIT_HALL_RES(0x10),
	// 获取房间里玩家信息
	TYPE_FEACH_USER_LIST_IN_ROOM_REQ(0X11),
	TYPE_FEACH_USER_LIST_IN_ROOM_RES(0X12);
	
	private final int value;
	
	Protocol(int value){
		this.value = value;
	}

	public int getValue() {
		return value;
	}
	
}
